package com.demo.controller;

import com.demo.model.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

@Controller
public class BeanScopesControllerD {

    // 属性注入
    @Autowired
    private User userKe;

    public User getUser() {
        return userKe;
    }
}
